package com.team.sns.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
 * 
 * @author lyh
 * @version 1.0
 */
@Entity
public class UserActor implements Serializable{

	private static final long serialVersionUID = 1L;

	private Integer id;
	
	private Integer userId;
	
	private Integer actorId;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	@Column(length = 11, nullable = false)
	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getActorId() {
		return actorId;
	}

	@Column(length = 11, nullable = false)
	public void setActorId(Integer actorId) {
		this.actorId = actorId;
	}
	
	
}
